﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mimoza.ServiceLayer
{
    /// <summary>
    /// Represent connection information of host. 
    /// </summary>
    public class HostConnectionInfo
    {
        public HostConnectionInfo(string hostId)
        {
            m_id = hostId;
        }

        public HostConnectionInfo(string hostId, string addr, int udpPort)
        {
            m_id = hostId;
            Address = addr;
            UdpPort = udpPort;
        }

        public string Id
        {
            get{ return m_id; }
        }

        public string Address
        {
            get{ return m_addr; }
            set{ m_addr = value; }
        }

        public int UdpPort
        {
            get { return m_udpPort; }
            set { m_udpPort = value; }
        }
        
        string m_id;
        string m_addr;
        int m_udpPort;
    }
}
